import Vue from 'vue'
import Router from 'vue-router'

import Login from '@/components/Login'
import Home from '@/components/Home'


import Workspace from '@/components/Workspace'
import Plan from '@/components/plan/Plan'
import Qa from '@/components/qa/QA'
import Board from '@/components/board/Board'
import Setting from '@/components/setting/Setting'

import HelloWorld from '@/components/HelloWorld'
import Dashboard from '@/components/Dashboard'


Vue.use(Router)


export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/workspace',
      name: 'Workspace',
      component: Workspace,
      children: [
        {
          path: 'plan',
          component: Plan
        },
        {
          path: 'qa',
          component: Qa
        },
        {
          path: 'board',
          component: Board
        },
        {
          path:'setting',
          component:Setting
        }
      ]
    },
    
  ]
})
